package ooday05;

public class GetterSetterDemo {
    public static void main(String[] args) {
        Point p=new Point();//新建一个对象,在新建对象的同时也调用point里面的参数
        p.setX(100);
        p.setY(200);
        System.out.println(p.getX()+","+p.getY());
    }
}
